package agendamento;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JLabel;
import javax.swing.JComboBox;
import javax.swing.JTextField;
import javax.swing.JButton;
import javax.swing.JTabbedPane;

import java.awt.Font;

import javax.swing.JSeparator;
import javax.swing.border.LineBorder;

import java.awt.Color;

import javax.swing.JFormattedTextField;
import javax.swing.border.SoftBevelBorder;
import javax.swing.border.BevelBorder;
import javax.swing.border.TitledBorder;
import javax.swing.UIManager;

import factory.FabricaDeFrame;
import skin.LookAndFeelSelector;
import java.awt.Toolkit;
import javax.swing.ImageIcon;

public class FrmEscolheServico extends JFrame {

	private JPanel contentPane;
	private JLabel lblServico;
	private JLabel lblProcurar;
	private JComboBox cbServico;	
	private JTextField txtProcurar;
	private JButton btnSearch;
	private JPanel panelServico;
	private JLabel lblTipoServico;
	private JLabel lblPreco;
	private JLabel lblDuracao;
	private JLabel lblGenero;
	private JLabel lblEncaixavel;
	private JTextField txtNomeServico;
	private JFormattedTextField txtPrecoServico;
	private JFormattedTextField txtDuracao;
	private JTextField txtGenero;
	private JTextField txtEncaixavel;
	private JButton btnEscolher;
	private JButton btnCancelar;
	

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					LookAndFeelSelector.lookAndFeelNimbus();
					
					FrmEscolheServico frame = (FrmEscolheServico) FabricaDeFrame.getInstanceEscolherServico();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public FrmEscolheServico() {
		setIconImage(Toolkit.getDefaultToolkit().getImage("C:\\Projetos\\SallonSoft-trunk\\src\\Repositorio\\icon.png"));
		setTitle("Escolher Servi\u00E7o");
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 454, 398);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);
		
		lblServico = new JLabel("Servi\u00E7o:");
		lblServico.setBounds(10, 28, 46, 14);
		contentPane.add(lblServico);
		
		cbServico = new JComboBox();
		cbServico.setBounds(95, 25, 251, 20);
		contentPane.add(cbServico);
		
		lblProcurar = new JLabel("Procurar:");
		lblProcurar.setBounds(10, 73, 73, 14);
		contentPane.add(lblProcurar);
		
		txtProcurar = new JTextField();
		txtProcurar.setBounds(95, 70, 251, 20);
		contentPane.add(txtProcurar);
		txtProcurar.setColumns(10);
		
		btnSearch = new JButton("");
		btnSearch.setToolTipText("Procurar servi\u00E7o");
		btnSearch.setIcon(new ImageIcon("C:\\Projetos\\SallonSoft-trunk\\src\\Repositorio\\btn_search.png"));
		btnSearch.setBounds(358, 55, 40, 40);
		contentPane.add(btnSearch);
		
		panelServico = new JPanel();
		panelServico.setBorder(new TitledBorder(UIManager.getBorder("TitledBorder.border"), "Servi\u00E7o", TitledBorder.LEADING, TitledBorder.TOP, null, Color.BLACK));
		panelServico.setBounds(10, 114, 416, 186);
		contentPane.add(panelServico);
		panelServico.setLayout(null);
		
		lblTipoServico = new JLabel("Tipo:");
		lblTipoServico.setBounds(10, 37, 46, 14);
		panelServico.add(lblTipoServico);
		
		txtNomeServico = new JTextField();
		txtNomeServico.setBounds(82, 31, 259, 20);
		panelServico.add(txtNomeServico);
		txtNomeServico.setColumns(10);
		
		lblPreco = new JLabel("Pre\u00E7o: ");
		lblPreco.setBounds(10, 74, 46, 14);
		panelServico.add(lblPreco);
		
		txtPrecoServico = new JFormattedTextField();
		txtPrecoServico.setBounds(82, 68, 80, 20);
		panelServico.add(txtPrecoServico);
		
		lblDuracao = new JLabel("Dura\u00E7\u00E3o:");
		lblDuracao.setToolTipText("Tempo m\u00E9dio de dura\u00E7\u00E3o do Servi\u00E7o");
		lblDuracao.setBounds(205, 71, 58, 14);
		panelServico.add(lblDuracao);
		
		txtDuracao = new JFormattedTextField();
		txtDuracao.setBounds(275, 64, 66, 20);
		panelServico.add(txtDuracao);
		
		lblGenero = new JLabel("G\u00EAnero:");
		lblGenero.setToolTipText("Tipo de g\u00EAnero do Servi\u00E7o : Masculino ou Feminino");
		lblGenero.setBounds(10, 112, 46, 14);
		panelServico.add(lblGenero);
		
		txtGenero = new JTextField();
		txtGenero.setBounds(82, 109, 154, 20);
		panelServico.add(txtGenero);
		txtGenero.setColumns(10);
		
		lblEncaixavel = new JLabel("Encaixav\u00E9l:");
		lblEncaixavel.setToolTipText("Se o tipo de servi\u00E7o \u00E9 encaixavel ou n\u00E3o");
		lblEncaixavel.setBounds(10, 155, 66, 14);
		panelServico.add(lblEncaixavel);
		
		txtEncaixavel = new JTextField();
		txtEncaixavel.setBounds(82, 152, 86, 20);
		panelServico.add(txtEncaixavel);
		txtEncaixavel.setColumns(10);
		
			
		btnEscolher = new JButton("Escolher");
		btnEscolher.setBounds(243, 318, 89, 23);
		contentPane.add(btnEscolher);
		
		btnCancelar = new JButton("Cancelar");
		btnCancelar.setBounds(337, 318, 89, 23);
		contentPane.add(btnCancelar);
	}
}
